<template>
	<sc-dialog v-model="visible" title="提示" @closed="$emit('closed')">
		<template>
			<el-container style="height: 100vh">
					<el-main ref="main" class="nopadding" style="padding: 20px; ">
						<sc-form ref="formRef"
								 v-model="form"
								 :config="data"
						>
						</sc-form>
					</el-main>
			</el-container>
		</template>
	</sc-dialog>
</template>

<script setup>
import { ref, onMounted, defineProps ,defineEmits } from 'vue'

const visible = ref(true)
const props = defineProps({
	data: {
		type: Object,
		default: () => ({})
	}
});

const form = {
}
defineEmits(['closed'])

onMounted(() => {
	console.log('加载./dialog1组件完成')
})
</script>
